function getEffectvineCombat(cid, attacker, value)
function getEffectvineSpell(attacker, spellNameFromAttacker, value, cid) -- printar os elementos
if isPlayer(cid) or isPlayer(attacker) then return false end -- seguranca do player nao atacar
local pokeRaceAttacker, pokeRaceDefender = getPokemonType(attacker).type1, getPokemonType(cid).type1
if isInArray(typeTable[pokeRaceAttacker].super, pokeRaceDefender) or isInArray(typeTable[pokeRaceAttacker].super, pokeRaceDefender) then -- elemento atacante ser mais forte que os elementos de defesa
value = value * 1.3
elseif isInArray(typeTable[pokeRaceAttacker].week, pokeRaceDefender) or isInArray(typeTable[pokeRaceAttacker].week, pokeRaceDefender) then -- elemento atacante ser mais forte que os elementos de defesa
value = value
elseif isInArray(typeTable[pokeRaceAttacker].non, pokeRaceDefender) or isInArray(typeTable[pokeRaceAttacker].non, pokeRaceDefender) then -- elemento atacante ser mais forte que os elementos de defesa
value = 0
end
if getCreatureName(cid) == "Venusaur" and value ~= 0 and isMega(cid) and isInArray({"ice", "fire"}, pokeRaceAttacker)then -- Passiva thick fat
value = value / 2
end
return value
end
if(spellNameFromAttacker ~= -1) then -- checagem de efetividades
local name = getCreatureName(attacker) -- reflect system
if isMega(attacker) then
name = getPlayerStorageValue(attacker, storages.isMega)
end
local spellRace, pokeElement1, pokeElement2 = getMoveType(name, spellNameFromAttacker), getPokemonType(cid).type1, getPokemonType(cid).type2
if not typeTable[spellRace] then
local remover = removeSpellInXML(doCorrectString(name), spellNameFromAttacker)
if remover then print("Magia: " .. spellNameFromAttacker .. " removida do XML: " .. doCorrectString(name) .. ".xml") end
return 0
end
if isInArray(typeTable[spellRace].super, pokeElement1) or isInArray(typeTable[spellRace].super, pokeElement2) then -- elemento atacante ser mais forte que os elementos de defesa
value = value * 1.3
elseif isInArray(typeTable[spellRace].week, pokeElement1) or isInArray(typeTable[spellRace].week, pokeElement2) then -- elemento atacante ser mais forte que os elementos de defesa
value = value
elseif isInArray(typeTable[spellRace].non, pokeElement1) or isInArray(typeTable[spellRace].non, pokeElement2) then -- elemento atacante ser mais forte que os elementos de defesa
value = 0
end












info
Group: Marquês
Joined: 23/09/12
Posts: 1k
Reputation: +87
Gender: Masculino
enquanto o Quake esta ativo melee "se torna ground" e nao bate, apos finalizar o melee NAO BATE mais dano, SÓ se outro ataque tipo iron ou rock for ussado.
como eu disse anteriormente de algum jeito o Melee se torna do mesmo elemento do ultimo ataque, entao usando quake deixa o melee em ground ai nao bate
mesma coisa com buzz em ground, se voce usa algum cd electric o melee para de bater pq se torna electric entao pra arrumar é só usar outra cd de outro tipo ou tirar e colocar o poke novamente
lembrando q o pidgeot tb bate melee enquanto estou atacando entao se tem algum melee ai, é do pidgeot só o primeiro seria do c.o pois esperei bater 1x melee pra ativar o quake
[12/12/2016 23:12:32] 128[12/12/2016 23:12:33] 128[12/12/2016 23:12:33] auto attacking...[12/12/2016 23:12:33] value do auto ataque antes da fórmula = -71[12/12/2016 23:12:33] value do auto ataque depois da fórmula = -71[12/12/2016 23:12:33] 16[12/12/2016 23:12:34] 128[12/12/2016 23:12:34] auto attacking...[12/12/2016 23:12:34] value do auto ataque antes da fórmula = -62[12/12/2016 23:12:34] value do auto ataque depois da fórmula = -124[12/12/2016 23:12:34] 16[12/12/2016 23:12:35] 128[12/12/2016 23:12:35] auto attacking...[12/12/2016 23:12:35] value do auto ataque antes da fórmula = -68[12/12/2016 23:12:35] value do auto ataque depois da fórmula = -68[12/12/2016 23:12:35] 16[12/12/2016 23:12:35] 128[12/12/2016 23:12:35] 128[12/12/2016 23:12:36] 128[12/12/2016 23:12:36] 128[12/12/2016 23:12:36] 128[12/12/2016 23:12:37] 128[12/12/2016 23:12:37] auto attacking...[12/12/2016 23:12:37] value do auto ataque antes da fórmula = -56[12/12/2016 23:12:37] value do auto ataque depois da fórmula = -56[12/12/2016 23:12:37] 16[12/12/2016 23:12:37] 128[12/12/2016 23:12:37] 128[12/12/2016 23:12:38] 128[12/12/2016 23:12:38] 128[12/12/2016 23:12:38] 128[12/12/2016 23:12:39] 128[12/12/2016 23:12:39] auto attacking...[12/12/2016 23:12:39] value do auto ataque antes da fórmula = -68[12/12/2016 23:12:39] value do auto ataque depois da fórmula = -68[12/12/2016 23:12:39] 16[12/12/2016 23:12:39] 128[12/12/2016 23:12:40] 128[12/12/2016 23:12:40] 128[12/12/2016 23:12:40] 128[12/12/2016 23:12:41] 128[12/12/2016 23:12:41] auto attacking...[12/12/2016 23:12:41] value do auto ataque antes da fórmula = -71[12/12/2016 23:12:41] value do auto ataque depois da fórmula = -71[12/12/2016 23:12:41] 16[12/12/2016 23:12:41] 128[12/12/2016 23:12:42] 128[12/12/2016 23:12:42] 128[12/12/2016 23:12:42] 128[12/12/2016 23:12:43] 128[12/12/2016 23:12:43] 128[12/12/2016 23:12:43] auto attacking...[12/12/2016 23:12:43] value do auto ataque antes da fórmula = -69[12/12/2016 23:12:43] value do auto ataque depois da fórmula = -69[12/12/2016 23:12:43] 16[12/12/2016 23:12:43] 128[12/12/2016 23:12:44] 128[12/12/2016 23:12:44] 128[12/12/2016 23:12:45] 128[12/12/2016 23:12:45] auto attacking...[12/12/2016 23:12:45] value do auto ataque antes da fórmula = -69[12/12/2016 23:12:45] value do auto ataque depois da fórmula = -69[12/12/2016 23:12:45] 16[12/12/2016 23:12:45] 128[12/12/2016 23:12:46] 128[12/12/2016 23:12:47] 128[12/12/2016 23:12:47] auto attacking...[12/12/2016 23:12:47] value do auto ataque antes da fórmula = -76[12/12/2016 23:12:47] value do auto ataque depois da fórmula = -76[12/12/2016 23:12:47] 16[12/12/2016 23:12:48] 128function getEffectvineCombat(cid, attacker, value)
function getEffectvineCombat(cid, attacker, value)if isPlayer(cid) or isPlayer(attacker) then return false end -- seguranca do player nao atacar local pokeRaceAttacker, pokeRaceDefender = getPokemonType(attacker).type1, getPokemonType(cid).type1 if isInArray(typeTable[pokeRaceAttacker].super, pokeRaceDefender) or isInArray(typeTable[pokeRaceAttacker].super, pokeRaceDefender) then -- elemento atacante ser mais forte que os elementos de defesa value = value * 1.3 elseif isInArray(typeTable[pokeRaceAttacker].weak, pokeRaceDefender) or isInArray(typeTable[pokeRaceAttacker].weak, pokeRaceDefender) then -- elemento atacante ser mais forte que os elementos de defesa value = valueelseif isInArray(pokesGhosts, nomeDefense) then -- não bater em pokemons ghosts value = 0 end if getCreatureName(cid) == "Venusaur" and value ~= 0 and isMega(cid) and isInArray({"ice", "fire"}, pokeRaceAttacker)then -- Passiva thick fat value = value / 2 end return valueendPOREM pelo q me falaram na DxP nao é usada essa tabela mas sim essa:
function getEffectvineSpell(attacker, spellNameFromAttacker, value, cid) -- printar os elementos
function getEffectvineSpell(attacker, spellNameFromAttacker, value, cid) -- printar os elementos if(spellNameFromAttacker ~= -1) then -- checagem de efetividades local name = getCreatureName(attacker) -- reflect system if isMega(attacker) then name = getPlayerStorageValue(attacker, storages.isMega) end local spellRace, pokeElement1, pokeElement2 = getMoveType(name, spellNameFromAttacker), getPokemonType(cid).type1, getPokemonType(cid).type2 if not typeTable[spellRace] then local remover = removeSpellInXML(doCorrectString(name), spellNameFromAttacker) if remover then print("Magia: " .. spellNameFromAttacker .. " removida do XML: " .. doCorrectString(name) .. ".xml") end return 0 end local multiplier = 1 if isInArray(typeTable[spellRace].super, pokeElement1) then multiplier = multiplier + 1 end if pokeElement2 and isInArray(typeTable[spellRace].super, pokeElement2) then multiplier = multiplier + 1 end if isInArray(typeTable[spellRace].effective, pokeElement1) then multiplier = multiplier + 0.6 end if pokeElement2 and isInArray(typeTable[spellRace].effective, pokeElement2) then multiplier = multiplier + 0.6 end if isInArray(typeTable[spellRace].norm, pokeElement1) then multiplier = multiplier + 0.2 end if pokeElement2 and isInArray(typeTable[spellRace].norm, pokeElement2) then multiplier = multiplier + 0.2 end if isInArray(typeTable[spellRace].inef, pokeElement1) then multiplier = multiplier - 0.2 end if pokeElement2 and isInArray(typeTable[spellRace].inef, pokeElement2) then multiplier = multiplier - 0.2 end if isInArray(typeTable[spellRace].weak, pokeElement1) then multiplier = multiplier - 0.3 end if pokeElement2 and isInArray(typeTable[spellRace].weak, pokeElement2) then multiplier = multiplier - 0.3 end if isInArray(typeTable[spellRace].non, pokeElement1) then multiplier = multiplier * 0 end if pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then multiplier = multiplier * 0 end if multiplier == 1.5 and poketype2 == "no type" then multiplier = 2 elseif multiplier == 0.75 and poketype2 == "no type" then multiplier = 0.5 elseif multiplier == 1.25 then multiplier = 1 end value = value * multiplier if getCreatureName(cid) == "Venusaur" and value ~= 0 and isMega(cid) and isInArray({"ice", "fire"}, spellRace)then -- Passiva thick fat value = value / 2 end end return valueendEdited Dezembro 13 by Josegvb